import vueRouter from 'vue-router'
//导入tabbar组件
import HomeContainer from './components/tabbar/HomeContainer.vue'
import MemberContainer from './components/tabbar/MemberContainer.vue'
import ShopcarContainer from './components/tabbar/ShopcarContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'

//导入新闻列表页
import NewsList from './components/news/NewsList.vue'
//新闻详情页
import NewsInfo from './components/news/NewInfo.vue'

//引入图片分享列表
import PhotoList from './components/photos/PhotoList.vue'
var router =new vueRouter({
    routes:[
      {path:'/',redirect:'/home'},
      {path:'/home',component:HomeContainer},
      {path:'/member',component:MemberContainer},
      {path:'/shopcar',component:ShopcarContainer},
      {path:'/search',component:SearchContainer},
      {path:'/home/newsList',component:NewsList},
      {path:'/home/newsInfo/:id',component:NewsInfo},
      {path:'/home/photoList/',component:PhotoList},
    ],
    linkActiveClass:'mui-active'//覆盖路由高亮的类 router-link-active
  })

export default router